package com.qing.deep_in.springboot.chapter3.aspect.config;

import com.qing.deep_in.springboot.chapter3.aspect.bean.User;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

/**
 * @author guoqf
 * @date 2022/3/25 13:44
 */
@Configuration
@ComponentScan(basePackages = "com.qing.deep_in.springboot.chapter3.aspect.*")
public class AppConfig {

    @Bean
    public User initUser() {
        User user = new User();
        user.setId(1);
        user.setName("user1");
        user.setCode(1);
        return user;
    }
}
